/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.structural.decorator;

/**
 *
 * @author BassonCJ
 */
public class DecoratorMainFactory {
    private static DecoratorMainFactory decoratorMainFactory = null;
    
    private DecoratorMainFactory(){
    }
    
    public synchronized static DecoratorMainFactory getInstance(){
        if(decoratorMainFactory == null){
            decoratorMainFactory = new DecoratorMainFactory();
        }
        return decoratorMainFactory;
    }
    
    public DecoratorFactory getDecoratorFactory(){
        return new DecoratorFactory();
    }
    
    public AnimalFactory getAnimalDecorator(){
        return new AnimalFactory();
    }
}

